# Maintainer: Bruno Pagani <archange@archlinux.org>
# Maintainer: Daniel Bermond <dbermond@archlinux.org>

pkgname=igsc
pkgver=0.8.6
pkgrel=2
pkgdesc="Intel graphics system controller firmware update library"
arch=(loong64 x86_64)
url="https://github.com/intel/igsc/"
license=(Apache)
depends=(intel-metee systemd-libs)
makedepends=(cmake systemd)
source=(${url}/archive/V${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('9726227af0667d247db54f94621b9d1af312dff1cd06ba75a18052cbcb754fa7')

build() {
  cmake -B build -S ${pkgname}-${pkgver} \
    -DCMAKE_BUILD_TYPE=None \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DENABLE_WERROR=OFF \
    -Wno-dev
  make -C build
}

package() {
  make -C build DESTDIR="$pkgdir" install
}
